@mixin home-theme($theme) {
  $primary: map-get($theme, primary);
  $warn: map-get($theme, warn);
  $background: map-get($theme, background);
  $accent: map-get($theme, accent);
  $primary-color: map-get($primary, 500);

  $warn-color: map-get($warn, 500);
  $accent-color: map-get($accent, 500);
  $foreground: map-get($theme, foreground);
  $is-dark-theme: map-get($theme, is-dark);
  $back: map-get($background, background);

  $list-background-color: map-get($background, 300);
  $card-background-color: map-get($background, cards);
  $border-color: if($is-dark-theme, rgba(#8795a1, 0.2), rgba(#8795a1, 0.2));
  $border-selected-color: if($is-dark-theme, #fff, #000);

  .home-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 3rem;
  }

  .home-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;

    .header {
      display: flex;
      flex-direction: column;
      margin-bottom: 2rem;

      .title {
        font-size: 2rem;
        margin-bottom: 1rem;
      }
    }

    .home-desc {
      font-size: 1.2rem;
      margin-top: 2rem;
      text-transform: uppercase;
    }

    .home-grid-container {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
      justify-content: space-evenly;
      padding-bottom: 1rem;

      @media only screen and (min-width: 599px) {
        grid-template-columns: 1fr 1fr;
      }

      @media only screen and (min-width: 1000px) {
        grid-template-columns: 1fr 1fr 1fr;
      }

      .grid-item {
        padding: 1rem;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        box-sizing: border-box;
        font-size: 14px;
        background-color: $card-background-color;
        border: 1px solid $border-color;
        border-radius: 0.5rem;
        margin: 0;
        text-decoration: none;
        color: inherit;

        &.edit-state {
          cursor: move;
        }

        .icon-wrapper {
          display: flex;
          justify-content: center;
          align-items: center;
          padding: 0.5rem;
          border-radius: 50vw;
          flex-shrink: 0;
          margin-right: 1rem;
          align-self: center;

          .inner {
            border-radius: 50vw;
            height: 40px;
            width: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.75rem;
          }
        }
      }
    }

    .fill-space {
      flex: 1;
    }
  }

  .short-link {
    margin-bottom: 0.5rem;
    font-size: 15px;
    text-decoration: none;
    display: block;
    position: relative;

    .las {
      font-size: 1.5rem !important;
      height: 1.5rem;
      visibility: hidden;
      position: absolute;
      right: 0;
    }

    &:hover {
      .las {
        visibility: visible;
      }
    }
  }
}
